package com.dfbz.demo01;

import java.util.Arrays;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo02_arrayCopy {

    public static void main(String[] args) {

        int[] src = new int[]{1, 2, 3, 4, 5};
        int[] dest = new int[]{11, 22, 33, 44, 55};

        System.arraycopy(src,2,dest,0,2);

        System.out.println(Arrays.toString(src));
        System.out.println(Arrays.toString(dest));              // 3, 4, 33, 44, 55

    }
}
